package com.example.demoweb1.demowed;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class BeingController {
    @GetMapping("/message")
    public String Test(Model model){
        model.addAttribute("message","新闻1");
        return "test2";
    }
}
